<!-- BEGIN PAGE HEADER-->
<h3 class="page-title">
    朋友圈详情
    <small></small>
</h3>
<div class="page-bar">
    <ul class="page-breadcrumb">
        <li>
            <i class="fa fa-home"></i>
            <a href="index.html">Home</a>
            <i class="fa fa-angle-right"></i>
        </li>
        <li>
            <a href="#">用户管理</a>
            <i class="fa fa-angle-right"></i>
        </li>
        <li>
            <a href="#">朋友圈</a>
        </li>
    </ul>
</div>
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<div class="row">
    <div class="col-md-12">
        <form class="form-horizontal form-row-seperated" action="#" id="edit_form">
            <div class="portlet">
                <div class="portlet-title">
                    <div class="caption">
                        <i class="fa fa-shopping-cart"></i>详情
                    </div>
                    <div class="actions btn-set">
                        <button type="button" id="back" class="btn default">
                            <i class="fa fa-angle-left"></i> 返回
                        </button>
                        <!--button class="btn default">
                            <i class="fa fa-reply"></i> 重置
                        </button>
                        <button type="button" class="btn green table-group-action-submit">
                            <i class="fa fa-check"></i> 保存
                        </button-->
                        <!--<button class="btn green"><i class="fa fa-check-circle"></i> 保存 & 继续编辑</button>-->
                    </div>
                </div>
                <div class="portlet-body">
                    <div class="tabbable">

                        <div class="tab-content no-space">
                            <div class="tab-pane active" id="tab_general">
                                <div class="form-body">
                                    <div class="form-group">
                                        <label class="col-md-2 control-label">
                                            昵称: <span class="required"> </span>
                                        </label>
                                        <div class="col-md-10">
                                            <a class="btn yellow" href="/admin/member/edit?id=<?php echo $data['member_id'];?>">
                                                <?php echo $data['member_nick_name'];?>
                                            </a>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-md-2 control-label">
                                            内容: <span class="required"> </span>
                                        </label>
                                        <div class="col-md-10">
                                            <input disabled type="text" class="form-control" name="content" placeholder="" value="<?php echo $data['content'];?>">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-md-2 control-label">
                                            发布时间: <span class="required"> </span>
                                        </label>
                                        <div class="col-md-10">
                                            <input disabled type="text" class="form-control" name="content" placeholder=""
                                                   value="<?php echo date('Y-m-d H:i:s',$data['add_time']);?>">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-md-2 control-label">
                                            图片: <span class="required"> </span>
                                        </label>
                                        <div class="col-md-10">
                                            <?php foreach(explode(',',$data['img_url']) as $value) { ?>
                                                <img width="200px" src="<?php echo $value ?>">
                                            <?php }?>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-md-2 control-label">
                                             <span class="required"></span>
                                        </label>
                                        <div class="col-md-10">
                                            <a href="/admin/comment/list?class=3&keyword=<?php echo $data['id']; ?>" class="btn yellow">查看评论</a>
                                            <a href="/admin/friendcircle/support?circle_id=<?php echo $data['id'];?>" class="btn yellow">查看点赞</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<!-- END PAGE CONTENT-->
<script type="text/javascript" charset="utf-8" src="/plugins/editor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/plugins/editor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/plugins/editor/lang/zh-cn/zh-cn.js"></script>
<script>
    (function(){
//        var editor = UE.getEditor('editor',{'toolbars':[['link','unlink','bold','forecolor']],'autoHeightEnabled':false});
        var editor = UE.getEditor('editor',{
            'autoHeightEnabled':false,
        });
        var textarea = document.getElementById('content');
        editor.ready(function(){
            editor.setContent(textarea.value);
        });
        editor.addListener("contentChange",function(){
            textarea.value = editor.getContent();
        });
    })();
</script>